package com.project.service.impl.backend;

import java.util.List;

import com.project.dao.IDaoBackendUser;
import com.project.dao.bean.BackendUser;
import com.project.service.backend.ILoginBackendService;
import com.project.service.impl.BaseServiceImpl;
import com.project.webapp.form.backend.LoginBackendForm;

public class LoginBackendServiceImpl extends BaseServiceImpl implements ILoginBackendService {
    IDaoBackendUser daoBackendUser;

    public IDaoBackendUser getDaoBackendUser() {
        return daoBackendUser;
    }

    public void setDaoBackendUser(IDaoBackendUser daoBackendUser) {
        this.daoBackendUser = daoBackendUser;
    }

    @Override
    public boolean validLoginBackendUser(LoginBackendForm loginBackendForm) throws Exception {
        return daoBackendUser.validLoginBackendUser(loginBackendForm);
    }

    @Override
    public List<BackendUser> getBackendUserList(LoginBackendForm loginBackendForm) throws Exception {
        return daoBackendUser.getBackendUserList(loginBackendForm);
    }

}
